<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8">
      <title>js自增</title>
   </head>
   <body>
      <script>
         let num = 1
         num++
         console.log(num)

      </script>
   </body>
</html>